package com.project.webpage.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.project.webpage.dto.ShCzJzDto;
import com.project.webpage.dto.ShCzJzParam;
import com.project.webpage.dto.ShCzRfidParam;
import com.project.webpage.dto.ShRfidDto;
import com.project.webpage.mapper.CzjczRfidStateMapper;
import com.project.webpage.service.CzjczRfidStateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CzjczRfidStateServiceImpl implements CzjczRfidStateService {

    @Resource
    private CzjczRfidStateMapper czjczRfidStateMapper;

    @Override
    @DS("master")
    public List<ShCzJzDto> getJzListForPage(ShCzJzParam param) {
        return czjczRfidStateMapper.selectJzList(param);
    }

    @Override
    @DS("master")
    public List<ShRfidDto> getRfidListForPage(ShCzRfidParam param) {
        return czjczRfidStateMapper.selectRfidList(param);
    }
}
